package experiment01;

public class Truck extends Vehicles {
    private float load;

    public Truck() {
    }

    public Truck(String brand, String color, float load) {
        super(brand, color);
        this.load = load;
    }

    public float getLoad() {
        return load;
    }

    public void setLoad(float load) {
        this.load = load;
    }

    public void showTruck(){
        super.showInfo();
        System.out.println("载重："+getLoad()+"吨");
    }
}
